import request from '@/request/request'
export const getList = params => request.get('/recommend/appIndex')
// 获取验证码
export const postsmsCode = params => request.post('/smsCode',params)
// 短信验证码登录
export const loginCode = params => request.post('/login', params)
// 获取用户信息
export const getUserInfo = () => request.get('/userInfo')
// 设置密码
export const setPassword = (params) => request.post('/password', params)
// 讲师详情
export const getTeacher = (id) => request.get(`/teacher/${id}`)
// 关注取消关注
export const getGuanzhu = (id) => request.get(`/teacher/collect/${id}`)
// 关注的老师
export const getGuanzhuTeacher = () => request.get(`/collect`)
// 课程
export const getCourseBasis = (params) => request.get('/courseBasis', params)
// 课程详情
export const getCourseInfo = (id) => request.get(`/courseInfo/basis_id=${id}`)
export const getCourseClassify = () => request.get(`/courseClassify`)

